[Bug 1150156] New: snapper create: Wrong error message for unknown parameters
http://bugzilla.suse.com/show_bug.cgi?id=1150156 Bug ID: 1150156 Summary: snapper create: Wrong error message for unknown parameters Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: slindomansilla@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- When snapper create is executed with an unknown parameter, the message creates confusion: "Command 'create' does not take arguments." Including devel project filesystems:snapper/snapper -> snapper-0.8.3/client/snapper.cc, the command does accept arguments: 625 void 626 command_create(ProxySnappers* snappers, ProxySnapper* snapper) 627 { 628 const struct option options[] = { 629 { "type", required_argument, 0, 't' }, 630 { "pre-number", required_argument, 0, 0 }, 631 { "print-number", no_argument, 0, 'p' }, 632 { "description", required_argument, 0, 'd' }, 633 { "cleanup-algorithm", required_argument, 0, 'c' }, 634 { "userdata", required_argument, 0, 'u' }, 635 { "command", required_argument, 0, 0 }, 636 { 0, 0, 0, 0 } 637 }; 638 639 GetOpts::parsed_opts opts = getopts.parse("create", options); 640 if (getopts.hasArgs()) 641 { 642 cerr << _("Command 'create' does not take arguments.") << endl; 643 exit(EXIT_FAILURE); 644 } But, the message is wrong. Reproducible: Having an openSUSE/SLE installation with enabled BTRFS snapshots, execute: # snapper create -type single -d "single snapshot" Notice the bad argument -type. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1150156
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1150156
Alynx Zhou
http://bugzilla.suse.com/show_bug.cgi?id=1150156
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1150156
http://bugzilla.suse.com/show_bug.cgi?id=1150156#c1
David Diaz
http://bugzilla.suse.com/show_bug.cgi?id=1150156
David Diaz
http://bugzilla.suse.com/show_bug.cgi?id=1150156
http://bugzilla.suse.com/show_bug.cgi?id=1150156#c2
--- Comment #2 from Sergio Lindo Mansilla
https://bugzilla.suse.com/show_bug.cgi?id=1150156
Lukas Ocilka
https://bugzilla.suse.com/show_bug.cgi?id=1150156
Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1150156
https://bugzilla.suse.com/show_bug.cgi?id=1150156#c3
--- Comment #3 from Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1150156
Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1150156
https://bugzilla.suse.com/show_bug.cgi?id=1150156#c4
--- Comment #4 from Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1150156
https://bugzilla.suse.com/show_bug.cgi?id=1150156#c5
--- Comment #5 from Arvin Schnell
https://bugzilla.suse.com/show_bug.cgi?id=1150156
https://bugzilla.suse.com/show_bug.cgi?id=1150156#c6
Arvin Schnell
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com