Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3
-
9223372036854775807
Description
When running lfs CMD --help or lctl CMD --help the help message is printed to stderr. By convention stdout should be used instead.
When using lfs or lctl, if an unrecognized command is passed to Parser_execarg() we get a 100+ line usage message printed to stdout.
# lctl barf Try interactive use without arguments or use one of: "===== metacommands =======" "--device" "--ignore_errors" "ignore_errors" "======== control =========" "help" "lustre_build_version" "exit" "quit" ... "llog_print" "llog_check" "llog_cancel" "llog_remove" "add_interface" "del_interface" "add_route" "del_route" "set_route" as argument.
- We shouldn't spam the terminal with so many lines of output for an unrecognized command.
- We need to print the command that was passed.
# git barf git: 'barf' is not a git command. See 'git --help'. Did you mean this? branch
Attachments
Issue Links
- is related to
-
LU-16392 Bash completion regressions, lctl and lfs
-
- Resolved
-
Activity
Link | New: This issue is related to ATM-2635 [ ATM-2635 ] |
Fix Version/s | New: Lustre 2.16.0 [ 15190 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Assignee | Original: WC Triage [ wc-triage ] | New: Aleksei Alyaev [ aalyaev ] |
Labels | Original: utils | New: easy utils |
Link | New: This issue is related to PP-269 [ PP-269 ] |