[GNC] Command line quotes still not fixed

Geert Janssens geert.gnucash at kobaltwit.be
Thu Apr 6 03:47:44 EDT 2023


Actually instead of adding a --namespace parameter, you can just use '--' to separate the 
named parameters from the positional parameters like so:
flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get -- /home/dgp/
GnuCash/ubuntu-DGPickett.gnucash

That's a common unix way to solve such ambiquities.

Regards,

Geert

Op donderdag 6 april 2023 05:04:02 CEST schreef john:
> The namespace parameter is a regular expression, so .* will get the quotes
> from all of your namespaces.
> 
> Regards,
> John Ralls
> 
> > On Apr 5, 2023, at 3:46 PM, David H <hellvee at gmail.com> wrote:
> > 
> > What default namespace, look in YOUR security editor - as far as
> > I know it's whatever you set up.  I have a vague recollection that it
> > doesn't really care and will be happy with just a single character
> > i.e. --namespace=x
> > but don't quote me on that.
> > 
> > By the way your original email could do with some halfway decent
> > formatting
> > - see what the mailing list received at
> > https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106230.html
> > you
> > might like to tweak that to make it readable in future.
> > 
> > Cheers David H.
> > 
> > On Thu, 6 Apr 2023 at 07:46, David G. Pickett <dgpickett at aol.com> wrote:
> >> I saw that later.  What's the default namespace?
> >> 
> >> 
> >> -----Original Message-----
> >> From: David H <hellvee at gmail.com>
> >> To: David G. Pickett <dgpickett at aol.com>
> >> Cc: gnucash-user at gnucash.org <gnucash-user at gnucash.org>
> >> Sent: Wed, Apr 5, 2023 3:45 pm
> >> Subject: Re: [GNC] Command line quotes still not fixed
> >> 
> >> And you'll see there's a whole other thread on this -
> >> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106181.html.
> >> Bug report at https://bugs.gnucash.org/show_bug.cgi?id=798815
> >> 
> >> If you include a namespace parameter for now it will work.
> >> 
> >> Cheers David H.
> >> 
> >> On Wed, 5 Apr 2023 at 23:00, David G. Pickett via gnucash-user <
> >> gnucash-user at gnucash.org> wrote:
> >> 
> >> I can still only update quotes with the interactive button, the flatpak
> >> run gnucash command that ran in 4.* is still broken:
> >> dgp at dgp-p6803w:~$ flatpak run --command=gnucash-cli org.gnucash.GnuCash
> >> --quotes get /home/dgp/GnuCash/ubuntu-DGPickett.gnucashMissing data file
> >> parameter
> >> gnucash-cli [options] [datafile] - GnuCash, accounting for personal and
> >> small business finance:
> >> Common Options:  -h [ --help ]          Show this help message  -v [
> >> --version ]       Show GnuCash version  --debug                Enable
> >> debugging mode: provide deep detail in the                          logs.
> >> 
> >>                       This is equivalent to: --log "=info" --log
> >> 
> >> "qof=info"                          --log "gnc=info"  --extra
> >> 


More information about the gnucash-user mailing list