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

How to get command line help for flags, etc. #65

Closed
erichgoldman opened this issue Nov 22, 2018 · 8 comments
Closed

How to get command line help for flags, etc. #65

erichgoldman opened this issue Nov 22, 2018 · 8 comments

Comments

@erichgoldman
Copy link

Hello,

I am using version LxRunOffline v3.3.1 installed by chocolatey. On the wiki I do not see detailed documentation and I have been googling to find examples for some basics. I was looking for more detailed help when running on the command line by running something like LxRunOffline help run but the command line reports back: "[ERROR] The action "help" is not recognized." I see in another issue that this should in fact be the format.

I've also seems like some wiki pages have gone missing? I cloned the wiki repo and it looks like many pages were removed, is that for an older version only?

@DDoSolitary
Copy link
Owner

The comment in that issue applies to an older version. Simply run LxRunOffline run and you'll get what you want.

@DDoSolitary
Copy link
Owner

The wiki page about installing Alpine Linux was removed because the related bugs have been fixed in win10's 1809 release (I just forgot to update the reference). The one about creating shortcuts was removed because it's now directly supported by the program. There others are instructions on downloading necessary files for different distros and have been unified to the Home page.

@erichgoldman
Copy link
Author

Thanks for the update, when I run LxRunOffline run I get the output "[ERROR] the option '-n' is required but missing". I was hoping for more verbose output and to see if there were optional flags - e.g., I don't see anything that states that -n means name.

DDoSolitary added a commit that referenced this issue Nov 22, 2018
@DDoSolitary
Copy link
Owner

That's strange, it should have output meaning of all possible flags. I'll look into this.

DDoSolitary added a commit that referenced this issue Nov 22, 2018
@DDoSolitary
Copy link
Owner

DDoSolitary commented Nov 22, 2018

It turned out to be a regression introduced by 5f8419d and I just fixed it. Please try the attached version and let me know if it works, thanks. (The automated build on AppVeyor is taking longer than expected so I just uploaded the version I built locally.)
Release.zip

@erichgoldman
Copy link
Author

Hi, for the release here it seems to now show more details - given: LxRunOffline.exe run

[ERROR] the option '-n' is required but missing

Options:
  -n arg                Name of the distribution
  -c arg                The command to run. Launch default shell if not
                        specified.
  -w                    Don't use the working directory in Windows for the
                        Linux process.

However, I noticed in the attached that the "version" parameter is missing and not working: [ERROR] The action "version" is not recognized.

It looks like everything else is the same except the missing version command.

@DDoSolitary
Copy link
Owner

It is expected. version is only available in executables automatically built on AppVeyor, for which I wrote extra script to retrieve version info from git.

@DDoSolitary
Copy link
Owner

Now the automated build has completed and you'll find the version command working in this build: https://ci.appveyor.com/api/buildjobs/ownsme4qmr2syxpn/artifacts/LxRunOffline-v3.3.1-2-g4bd26d1.zip

I'll release this fix as v3.3.2 some time later.

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