Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/aspeed/lpc_mem.go arguments end up everywhere #185

Open
osresearch opened this issue Aug 15, 2019 · 1 comment
Open

pkg/aspeed/lpc_mem.go arguments end up everywhere #185

osresearch opened this issue Aug 15, 2019 · 1 comment

Comments

@osresearch
Copy link
Contributor

For some reason the --lpc_cache and --print_lpc_stats command line arguments from pkg/aspeed/lpc_mem.go are ending up in every command. For example:

~# pwd --help
Usage of pwd [-LP]:
  -L	don't follow any symlinks (default true)
  -P	follow all symlinks (avoid all symlinks)
  -lpc_cache
    	Do not write values that match cached view of LPC2AHB F0-9 registers
  -print_lpc_stats
    	At the end of the run, print LPC statistics

or

~# date --help
Usage of date [-u] [-d FILE] [+format] | date [-u] [-d FILE] [MMDDhhmm[CC]YY[.ss]]:
  -lpc_cache
    	Do not write values that match cached view of LPC2AHB F0-9 registers
  -print_lpc_stats
    	At the end of the run, print LPC statistics
  -r string
    	Display the last midification time of FILE
  -u	Coordinated Universal Time (UTC)
@bluecmd
Copy link
Contributor

bluecmd commented Aug 15, 2019

It's an artifact from the way I used to do flags. Those are legacy anyway, so we should just remove them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants